﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

using CSF.BusinessCore.Service;
using CSF.Security.Data;

namespace CSF.Security.Service
{
    [ServiceContract]
    public interface IUserRoleSvc : IDataIdKeyConfigService<UserRole>
    {
        [OperationContract]
        IEnumerable<int> GetPermissions(int roleId);

        [OperationContract]
        void SetPermission(int roleId, IEnumerable<int> permissionIds, string createBy);
    }
}
